package com.talent.datasource.influxdb.demo;

import com.influxdb.annotations.Column;
import com.influxdb.annotations.Measurement;

import java.time.Instant;

/**
 * @ClassName：InfluxDbDemo
 * @Author: hszhou
 * @Date: 2024/10/28 18:12
 * @Description: 存入到influx中的数据
 */
@Measurement(name = "temp")
public class InfluxDbDemo {

    @Column(tag = true)
    private String location;

    @Column
    private Double value;

    @Column(timestamp = true)
    private Instant timestamp;


    public InfluxDbDemo( String location, Double value, Instant timestamp) {

        this.location = location;
        this.value = value;
        this.timestamp = timestamp;
    }


}
